import request from '@/utils/request'

// 查询客服消息列表
export function listService(query) {
  return request({
    url: '/message/service/list',
    method: 'get',
    params: query
  })
}

// 查询客服消息详细
export function getService(id) {
  return request({
    url: '/message/service/' + id,
    method: 'get'
  })
}

// 新增客服消息
export function addService(data) {
  return request({
    url: '/message/service',
    method: 'post',
    data: data
  })
}

// 修改客服消息
export function updateService(data) {
  return request({
    url: '/message/service',
    method: 'put',
    data: data
  })
}

// 删除客服消息
export function delService(id) {
  return request({
    url: '/message/service/' + id,
    method: 'delete'
  })
}

// 导出客服消息
export function exportService(query) {
  return request({
    url: '/message/service/export',
    method: 'get',
    params: query
  })
}

// 查询客服消息下拉列表
export function getOptions() {
  return request({
    url: '/message/service/getOptions',
    method: 'get'
  })
}

// 查询客服消息列表
export function selectListVo(query) {
  return request({
    url: '/message/service/selectListVo',
    method: 'get',
    params: query
  })
}